package com.project.internship.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.internship.entity.BaseEvaluate;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.internship.vo.BaseEvaluateVO;
import com.project.internship.vo.BaseTotalEvaluateVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2020-04-14
 */
@Repository
public interface BaseEvaluateMapper extends BaseMapper<BaseEvaluate> {

    List<BaseEvaluateVO> getAllotBaseEva( @Param("teacherId") Integer teacherId,@Param("currentYear") String currentYear);

    List<BaseTotalEvaluateVO> getThisYearBaseEva(@Param("departmentId") Integer departmentId, @Param("currentYear") String currentYear, @Param("keyword") String keyword);

    List<BaseTotalEvaluateVO> getBaseAvgEva(@Param("departmentId") Integer departmentId, @Param("keyword") String keyword);
}
